import express,{Request,Response, Router,Express} from 'express'
import axios from 'axios'
const app:Express = express()
const route:Router = express.Router()

app.use("/api",route);

route.get('/list',async (request:Request,response:Response) => {
    let result = await axios.get('https://api.inews.qq.com/newsqa/v1/query/inner/publish/modules/list?modules=statisGradeCityDetail,diseaseh5Shelf')
    response.json({
      ...result.data.data
    })
})



app.listen(5866, () => {
  console.log("http://localhost:5866");
});
